const routes = [
  {
    path: '/',
    name: 'MyIndex',
    redirect: '/study',
    component: () => import("@/views/MyIndex"),
    children: [
      {
        path: '/study',
        name: "MyStudy",
        component: () => import("@/views/Index/MyStudy")
      },
      {
        path: '/find',
        name: "MyFind",
        component: () => import("@/views/Index/MyFind")
      },
      {
        path: '/home',
        name: "MyHome",
        component: () => import("@/views/Index/MyHome")
      }
    ]
  },
  {
    path: '/nav',
    name: 'MyNav',
    component: () => import('@/views/MyNav')
  },
  {
    path: '/learn',
    name: 'MyLearn',
    component: () => import("@/views/MyLearn")
  },
  {
    path: "/:pathMatch(.*)*",
    name: "notFound",
    component: () => import("@/views/NotFind")
  },
  {
    path: "/myvar",
    name: 'MyVar',
    component: () => import("@/views/MyVar")
  }
]

export default routes